package com.skyworth.web.admin.role.service.impl;

import com.google.common.collect.Lists;
import com.skyworth.web.admin.role.domain.PermissionModel;
import com.skyworth.web.admin.role.repository.PermissionRepo;
import com.skyworth.web.admin.role.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by skyworth on 2016/9/22.
 */
@Service
public class PermissionServiceImpl implements PermissionService {

	@Autowired
	private PermissionRepo permissionRepo;

	@Override
	public List<PermissionModel> listPermission() {
		return Lists.newArrayList(permissionRepo.findAll());
	}
}
